package com.buaa.airticketbookingsystem.Service;

import com.buaa.airticketbookingsystem.Entity.PurchaseRecord;

import java.util.ArrayList;
import java.util.List;

public interface PurchaseRecordService {
    public void addNewPurchaseRecord(PurchaseRecord purchaseRecord);
    public void deletePurchaseRecordByIdAndEmail(String o_id, String t_id);
    public List<PurchaseRecord> getAllPurchaseRecordByUser(String email);
    public PurchaseRecord getPurchaseRecordByAll(String email, String t_id);
    public PurchaseRecord getPurchaseRecordByNo(String no);
    public void payPurchaseRecord(String no, String email, double money);
    public void refund(String no);
    public void delPR(String no);
}
